﻿using Myu.Redis.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Consumer
{
    class Program
    {
        static void Main(string[] args)
        {

            using (var redis = new RedisStringService())
            {
               var ss =  redis.Get("test");
                Console.WriteLine($"获取到的数据{ss}");
                //while (true)
                //{
                //    var result = redis.PopItemFromList("test");
                //    if (result != null)
                //    {
                //        Console.WriteLine($"获得数据{result}");
                //    }
                //    Thread.Sleep(500);
                //}
                redis.Dispose();
            }

            Console.ReadKey();
        }
    }
}
